{if $action == 'invites' }

{if $aList}

						<table style="width: 100%;" class="mainmenu5" cellpadding="0" cellspacing="0" border="0">
							<tr>
								<td width="7"><img src="design/pic/spacer.gif" class="sqr1" alt="" height="7" width="7" /></td>
								<td class="block_header">{language text="import.contacts"}</td>
							</tr>
						</table>

						<div style="font-size:9pt;padding:10px;">
						{language text="import.invite.done" extra=$iList}
						<ul>
						{foreach from=$aList item=aEmail}
							<li>{$aEmail}</li>
						{/foreach}
						</ul>
						</div>

{else}

{literal}
<script type="text/javascript">

	function checkall(thestate)
	{
		var el_collection = document.forms['results'].elements['list[]'];
		for (var c=0;c<el_collection.length;c++)
			el_collection[c].checked=thestate
	}

</script>
{/literal}
				<form name="results" method="post" action="{url link='current'}">

						<table style="width: 100%;" class="mainmenu5" cellpadding="0" cellspacing="0" border="0">
							<tr>
								<td width="7"><img src="design/pic/spacer.gif" class="sqr1" alt="" height="7" width="7" /></td>
								<td class="block_header">{language text="import.contacts"}</td>
							</tr>
						</table>

				{if $iTotal}
				<table style="width:100%;">
				<tr>
					<td class="color">
						<a href="javascript:checkall(true)">
							{language text="import.check.all"}
						</a>
						|
						<a href="javascript:checkall(false)">
							{language text="import.uncheck.all"}
						</a>
					</td>
					<td class="color" style="text-align:right;">
					<input type="submit" value="{language text="import.invite.friends"}" />
					</td>
				</tr>
				</table>
				<br />
				{/if}

						<div style="font-size:9pt;">
								{section name=I loop=$aData}
								<table style="width:100%;" cellpadding="5" cellspacing="5" {if $smarty.section.I.iteration % 2}class="border13"{/if}>
								<tr>
									<td style="width:5%;">
									{if !$aData[I].user}
										<input type="checkbox" name="list[]" value="{$aData[I].c_email}" checked="checked" />
									{/if}
									</td>
									<td style="width:95%;">
									{if $aData[I].user }
									<a href="{url link="public.user" name=$aData[I].user}" target="_blank">
									{/if}
									{if $aData[I].c_name != $aData[I].c_email}
										{$aData[I].c_name} ( {$aData[I].c_email} )
									{else}
										{$aData[I].c_email}
									{/if}
									{if $aData[I].user }
									</a>
									{/if}
									</td>
								</tr>
								</table>
								{sectionelse}
								<div style="padding:8px;">
									{language text="Mod_Account.no.imports"}
								</div>
								{/section}
						</div>

				{if $iTotal}
				<br />
				<table style="width:100%;">
				<tr>
					<td class="color">
						<a href="javascript:checkall(true)">
							{language text="import.check.all"}
						</a>
						|
						<a href="javascript:checkall(false)">
							{language text="import.uncheck.all"}
						</a>
					</td>
					<td class="color" style="text-align:right;">
					<input type="submit" value="{language text="import.invite.friends"}" />
					</td>
				</tr>
				</table>
				{/if}
				</form>

{/if}

{elseif $action == 'importer' }

						<table style="width: 100%;" class="mainmenu5" cellpadding="0" cellspacing="0" border="0">
							<tr>
								<td width="7"><img src="design/pic/spacer.gif" class="sqr1" alt="" height="7" width="7" /></td>
								<td class="block_header">{language text="import.contacts"}</td>
							</tr>
						</table>
						<br />
{messages}
<form method="post" action="{url link='current'}">
<table cellpadding="2" cellspacing="2">
<tr>
	<td style="text-align:right; width:150px;">{language text='import_email'}:</td>
	<td><input type="text" name="username" value="" size="30" /></td>
</tr>
<tr>
	<td style="text-align:right;">{language text='import_password'}:</td>
	<td><input type="password" name="password" value="" size="30" /></td>
</tr>
<tr>
	<td style="font-size:8pt; text-align:right;"></td>
	<td><input type="submit" value="{language text='import_submit'}" style="cursor:pointer;" />
		<img src="plugins/importer/images/{$client}.gif" alt="" style="vertical-align:middle;" />
	</td>
</tr>
</table>
</form>

{else}

						<table style="width: 100%;" class="mainmenu5" cellpadding="0" cellspacing="0" border="0">
							<tr>
								<td width="7"><img src="design/pic/spacer.gif" class="sqr1" alt="" height="7" width="7" /></td>
								<td class="block_header">{language text="import.contacts"}</td>
							</tr>
						</table>

						<div style="font-size:9pt;">
						<br />
							<div style="text-align:center;">

							{language text="import.intro"}
							<br />
								<table style="width:100%; background:#fff;" cellpadding="5" cellspacing="5">
								<tr>
								{section name=I loop=$importers}
									<td style="width:25%; text-align:center;">
										<a href="{url link='public.account.invite' view='importer' client=$importers[I].link}">
											<img src="plugins/importer/images/{$importers[I].image}" alt="" style="vertical-align:middle;" />
										</a>
									</td>
								{if $smarty.section.I.iteration % $iRowSize == 0}
								</tr><tr>
					            {/if}
								{/section}
								</tr>
								</table>
							</div>
						</div>
						<br />
						<br />
{/if}